package fr.insee.rome.string.comp;

public abstract class AbstractStringComparator implements StringComparator {

	protected AbstractStringComparator(){}
	
	public boolean matches(CharSequence a, CharSequence b) {
		return this.matches(a, b, THRESHOLD);
	}
	
	public boolean matches(CharSequence a, CharSequence b, int threshold) {
		return this.likeness(a, b) <= threshold;
	}
}
